package com.hww.acommon.test;

import android.content.Intent;
import android.net.Uri;
import android.view.View;

import com.hww.common.util.IntentUtils;

/**
 * @author hww
 * @date 0013 2024/6/13
 * email: heww@zhongyuntech.cn
 * description:
 */
public class UtilsIntentActivity extends BaseActivity {

    @Override
    protected void initDate() {
        binding.bt1.setText("拨打电话");
        binding.bt2.setText("打开电话盘");
        binding.bt3.setText("发短信");
        binding.bt4.setText("拍照");
        binding.bt5.setText("关机");
        binding.bt6.setText("分享");

    }

    @Override
    public void onClickBT1(View view) {
        Intent callIntent = IntentUtils.getCallIntent("13566666666");
        startActivity(callIntent);
    }

    @Override
    public void onClickBT2(View view) {
        Intent callIntent = IntentUtils.getDialIntent("13566666666");
        startActivity(callIntent);
    }

    @Override
    public void onClickBT3(View view) {
        Intent callIntent = IntentUtils.getSendSmsIntent("13566666666", "测试短信内容123456");
        startActivity(callIntent);
    }

    @Override
    public void onClickBT4(View view) {
        Intent callIntent = IntentUtils.getCaptureIntent(Uri.parse("/sdcard/cap.jpg"));
        startActivity(callIntent);
    }

    @Override
    public void onClickBT5(View view) {
        Intent callIntent = IntentUtils.getShutdownIntent();
        startActivity(callIntent);
    }

    @Override
    public void onClickBT6(View view) {
        Intent callIntent = IntentUtils.getShareTextImageIntent("分享的测试内容111",Uri.parse("/sdcard/cap.jpg"));
        startActivity(callIntent);
    }

    @Override
    public void onClickBT7(View view) {
        Intent callIntent = IntentUtils.getCaptureIntent(Uri.parse("/sdcard/cap.jpg"));
        startActivity(callIntent);
    }

    @Override
    public void onClickBT8(View view) {
        Intent callIntent = IntentUtils.getCaptureIntent(Uri.parse("/sdcard/cap.jpg"));
        startActivity(callIntent);
    }

    @Override
    public void onClickBT9(View view) {
        Intent callIntent = IntentUtils.getCaptureIntent(Uri.parse("/sdcard/cap.jpg"));
        startActivity(callIntent);
    }

    @Override
    public void onClickBT10(View view) {
        Intent callIntent = IntentUtils.getCaptureIntent(Uri.parse("/sdcard/cap.jpg"));
        startActivity(callIntent);
    }

    @Override
    public void onClickBT11(View view) {
        Intent callIntent = IntentUtils.getCaptureIntent(Uri.parse("/sdcard/cap.jpg"));
        startActivity(callIntent);
    }

    @Override
    public void onClickBT12(View view) {
        Intent callIntent = IntentUtils.getCaptureIntent(Uri.parse("/sdcard/cap.jpg"));
        startActivity(callIntent);
    }

    @Override
    public void onClickBT13(View view) {
        Intent callIntent = IntentUtils.getCaptureIntent(Uri.parse("/sdcard/cap.jpg"));
        startActivity(callIntent);
    }
}
